﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MachineRoomForm.aspx.cs" Inherits="BaseData_MachineRoomForm" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
     <title>当前位置:机房管理→机房编辑</title>
	<link href="../css/css.css" rel="stylesheet" type="text/css" />
	<!--#include file="../js/KeyControl.js"-->
	<base target="_self" />	
	<script type="text/javascript" language="JavaScript">
		function CheckFormMenu()
		{		
		
		    if(document.form1.ddlRegionid.value == "0")
			{
				alert("请选择地区！");
				document.form1.ddlRegionid.focus();
				return false;
			}
		    if(document.form1.txtMroomName.value.length >20)
		    {
			    alert("机房名称字符超过有效长度！");
			    document.form1.txtMroomName.focus();
			    return false;
		    }	
		       var btnSave=window.document.getElementById("btnSave");
		       if(btnSave!=null)
		       btnSave.click();
		}
			
	</script>

</head>
<body bgcolor="#F9F9FB" >
	<% 
		Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
		Response.Expires = 0;
		Response.CacheControl = "no-cache";
	%>
	<form id="form1" runat="server">
		<div>
<table style ="width :98%;"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr style ="height :10;">
    <td></td>
 </tr> 
</table>
			<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
                <tr bgcolor="#F9F9FB">
                    <td align="right" height="30">所属地区</td>
                    <td align="left">
                        <asp:DropDownList ID="ddlRegionid" DataTextField ="sName" DataValueField ="ID" runat="server">
                        </asp:DropDownList><font color="#FF0000">*</font></td>
                    <td align="right">机房名称</td>
                    <td align="left">
						<asp:TextBox ID="txtMroomName" runat="server" MaxLength="5" Width="100px"></asp:TextBox><font color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="不能为空" ControlToValidate="txtMroomName"></asp:RequiredFieldValidator></td>
                </tr>
				<tr bgcolor="#F9F9FB">
					<td height="30"  align="right">排序</td>
					<td align="left"><asp:TextBox ID="txtMroomSeq" runat="server" MaxLength="20" Width="100px"></asp:TextBox><font color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="不能为空" ControlToValidate="txtMroomSeq"></asp:RequiredFieldValidator>
					</td>
					<td>备注						
					</td>
					<td align="left"><asp:TextBox TextMode ="multiLine" ID="mroom_memo" runat ="server" Rows ="3" Columns ="50"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td height="36" colspan="4" bgcolor="F9F9FB">
						<div align="center">
							<asp:Button ID="btnSave" runat="server" Text="提交" Width="0px" Height="0px" BackColor="White"
								BorderColor="White" ForeColor="White" />
							&nbsp;&nbsp;&nbsp;
							<input type="button" id="Button1" value="提交" class="button02" onclick="CheckFormMenu();" />
							<input type="button" id="btnClose" value="返回" class="button02" onclick="location.href='MachineRoomManage.aspx'" />
						</div>
					</td>
				</tr>
			</table>
		</div>
	</form>
</body>
</html>

